package mzj.jarfinder;

import java.awt.Dimension;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;

class DownPanel extends JPanel {
	public static MTable_Model model = null;
	public static JTable table = null;

	public DownPanel() {
		model = new MTable_Model(20);
		table = new JTable(model);
		TableColumnModel tcm = table.getColumnModel();

		tcm.getColumn(0).setWidth(30);
		tcm.getColumn(0).setMaxWidth(50);

		tcm.getColumn(1).setPreferredWidth(200);
		tcm.getColumn(2).setPreferredWidth(150);
		tcm.getColumn(3).setPreferredWidth(150);

		JScrollPane scrollpane = new JScrollPane(table, 22, 32);
		scrollpane.setPreferredSize(new Dimension(580, 300));

		table.setAutoResizeMode(0);

		add(scrollpane);
	}
}